// import request from '@/utils/request'

export async function login(data) {
  // return request({
  //   url: '/user/login',
  //   method: 'post',
  //   data
  // })
  return {
    retCode: 1,
    data: {
      token: 'admin-token'
    }
  }
}

export async function getInfo(token) {
  // return request({
  //   url: '/user/info',
  //   method: 'get',
  //   params: { token }
  // })
  return {
    retCode: 1,
    data: {
      roles: ['admin'],
      introduction: 'I am a super administrator',
      avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
      name: 'Super Admin'
    }
  }
}

export async function logout() {
  // return request({
  //   url: '/user/logout',
  //   method: 'post'
  // })
  return {
    retCode: 1,
    data: null
  }
}
